package cn.tedu.serviceEdu.service;

import cn.tedu.serviceEdu.entity.EduCourse;
import cn.tedu.serviceEdu.query.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author hong
 * @since 2023-05-18
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourse(CourseInfo courseInfo);

    CourseInfo getCourseInfo(String courseId);

    void updateCourse(CourseInfo courseInfo);

    CoursePublishVo getCoursePublishVoById(String id);

    void publishCourseById(String id);

    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    boolean removeCourseById(String id);

    List<EduCourse> getIndexCourseList();

    Map<String, Object> pageListWeb(Page<EduCourse> pageParam, FrontCourseQueryVo courseQuery);

    FrontCourseWebVo selectInfoWebById(String courseId);

    void updatePageViewCount(String id);

    List<EduCourse> selectByTeacherId(String id);
}
